import { website } from "@/types";
import request from "@/utils/request";

export default {
  // 获取网站信息
  async getWebsiteInfo() {
    return (
      await request({
        url: "/website",
        method: "get",
      })
    ).data;
  },
  // 修改网站信息
  async updateWebsiteInfo(data: Partial<website>) {
    return (
      await request({
        url: "/website",
        method: "post",
        data,
      })
    ).data;
  },
};
